package tool

import (
	"MoSkeleton/framework/core/dto/response"
)

type GenDatasourceItemResp struct {
	response.ModelResp
	DatasourceName string `json:"datasourceName"`
	DatasourceType string `json:"datasourceType"`
	Url            string `json:"url"`
	ServerAddr     string `json:"serverAddr"`
	DbName         string `json:"dbName"`
	ListOrder      int32  `json:"listOrder"`
	Status         string `json:"status"`
	Remark         string `json:"remark"`
	CreatedBy      string `json:"createdBy"`
}

type GenDatasourceSimpleItemResp struct {
	response.ModelResp
	DatasourceName string `json:"datasourceName"`
	Status         string `json:"status"`
}

type GenDatasourceDetailResp struct {
	GenDatasourceItemResp
	Port       int32  `json:"port"`
	DbParam    string `json:"dbParam"`
	DbUsername string `json:"dbUsername"`
	DbPasswd   string `json:"dbPasswd"`
}
